'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const { router, controller } = app;
    router.get('/', controller.test.test);
    router.get('/userAll', controller.user.index.AllUser);
    router.get('/findUser', controller.user.index.findUser);


    // prize
    router.get('/prize', controller.lucky.index.allPrize);
    router.get('/getPrizeDesc', controller.lucky.index.prizeDesc);
    router.get('/sudoku', controller.lucky.index.sudoku);
    router.get('/prizeNum', controller.lucky.index.prizeNum);
    router.post('/getLucky', controller.lucky.index.getLucky);
    router.get('/isLucky', controller.lucky.index.isLucky);
    router.get('/luckyGood', controller.lucky.index.luckyGood);

};